using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.Entity.Infrastructure;
using ShopPowerTemplate.Services.Properties;
using ShopPowerTemplate.Entities;

namespace ShopPowerTemplate.Services
{
    public class CustomerService : CustomerServiceBase, ICustomerService
    {
		public CustomerService(IEntitiesDB entitiesDB) : base(entitiesDB) { }

        public virtual Customer Find(string email)
        {
            Customer customer = EntitiesDB.CustomerSet.Include("Addresses").FirstOrDefault(x => x.Email == email);
            return customer;
        }

		//Custom code here
	}
}	

